﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.UI.Common;
using Sinacor.Infra.Common;

namespace Sinacor.UI.Bovespa.Ordens.Communication.Translator
{
    public class CalendarioToModel : BaseTranslator<Model.Calendario, Bovespa.Calendario.Calendario.CalendarioResponse,
                                                    ModelCollection<Model.Calendario>, List<Bovespa.Calendario.Calendario.CalendarioResponse>>
    {
        public override Sinacor.UI.Bovespa.Ordens.Model.Calendario Translate(Sinacor.UI.Bovespa.Ordens.Communication.Bovespa.Calendario.Calendario.CalendarioResponse from)
        {
            Model.Calendario to = new Sinacor.UI.Bovespa.Ordens.Model.Calendario();
            
            to.DataPregao = from.DataPregao;
            
            return to;
        }
    }
}
